package com.csmht.tododemo;

import java.util.Scanner;

public class utils {


    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        StringBuilder one = new StringBuilder(scanner.nextLine());




        for (int i = 0; i < one.length(); i++) {
            if(one.charAt(i) == ' '){
                one.delete(i, i + 1);
            }
            if(one.charAt(i) == '_') {
                char ch = one.charAt(i+1);

                ch = (char) (ch - 'a' + 'A');

                one.delete(i,i+2);

                one.insert(i,ch);
            }
        }

        String[] split = one.toString().split(",");

        StringBuilder ans = new StringBuilder();

        for (String s : split) {
            ans.append("#{").append(s).append("}, ");
        }

        ans.deleteCharAt(ans.length()-1);

        System.out.println(ans);
    }

}
